<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$id}</title>
	<include file="Public:header" />
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerForm.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerButton.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerRadio.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script> 
    <script src="__PUBLIC__/lib/ligerUI/js/plugins/ligerTip.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/jquery-validation/jquery.validate.min.js" type="text/javascript"></script> 
    <script src="__PUBLIC__/lib/jquery-validation/jquery.metadata.js" type="text/javascript"></script>
    <script src="__PUBLIC__/lib/jquery-validation/messages_cn.js" type="text/javascript"></script>
    <script type="text/javascript"> 
       $(function ()
        {
          
             $("#detailform").ligerForm();
        }); 
       
         function f_save(){
        	 $.post('__URL__/add/',$("#detailform").serialize(),function(data){
        		 LG.showMessage(data, function () { 
          			window.parent.grid.loadData();
          			 window.parent.mydialog.close(); 
                      //要先刷新表格,再关闭窗口,否则表格不会刷新 
                  });
        	 });
         }
         function checkName(){
        	$.post("__URL__/checkAccount/",'ajax=1&account='+$('#account').val(),function(data){
        			var result=jQuery.parseJSON(data);
        			alert(result.info);
        			//alert(jQuery.parseJSON(data).info);
        		});
         }
       
    </script> 
  <style type="text/css">
         body{ font-size:12px;}
        .l-table-edit {}
        .l-table-edit-td{ padding:4px;}
        .l-button-submit,.l-button-reset{width:80px; float:left; margin-left:10px; padding-bottom:2px;}
        .l-verify-tip{ left:230px; top:120px;}
    </style>

</head>
<body style="padding:10px">
<div></div>
<form method='post'  id="detailform" >
<table cellpadding=3 cellspacing=3 class="l-table-edit">

<tr>
	<td class="l-table-edit-td" >用户名：</td>
	<td class="l-table-edit-td" ><input type="text" ltype="text" id="account"  name="account" value="{$vo.account}"></td>
	<td class="l-table-edit-td" ><input type="button" value="检测帐号" onclick="checkName()" class="l-button l-button-submit"></td>
</tr>
<tr>
	<td class="l-table-edit-td" >昵称：</td>
	<td class="l-table-edit-td" colspan="2"><input type="text" ltype="text" id="nickname" name="nickname" value=""></td>
</tr>
<tr>
	<td class="l-table-edit-td" >密码：</td>
	<td class="l-table-edit-td" ><input type="password" ltype="text" id="password" name="password" value=""></td>
</tr>
<tr>
	<td class="l-table-edit-td">状态：</td>
	<td class="l-table-edit-td" colspan="2">
		<select  ltype="select"  name="status" id="status">
			<option  selected value="1">启用</option>
			<option  value="0">禁用</option>
		</select>
	</td>
</tr>
<tr>
	<td class="l-table-edit-td">备  注：</td>
	<td class="l-table-edit-td" colspan="2"><TEXTAREA class="l-textarea"  name="remark" id="remark" rows="5" cols="40">{$vo.remark}</textarea></td>
</tr>
<tr>
	<td class="l-table-edit-td" colspan="3"><hr></td>
</tr>
<tr>
	<td></td>
	<td align="center" colspan="2">
		<!-- <input type="button" value="保 存" onclick="save()" class="l-button l-button-submit"> -->
		<input type="reset" class="l-button l-button-reset" value="清 空" >
	</td>
</tr>

</table>
</form>

</body>
</html>

